
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" name="viewport" />
    <meta http-equiv="content-script-type" content="text/javascript">
    <meta name="format-detection" content="telephone=no" />
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="0" />
    <title>会员等级与特权</title>
    <link rel="stylesheet"href="statics/mobile/css/style.css?v=2017122269445911">
    <link rel="stylesheet"href="statics/mobile/css/SpsBtn.css?v=2017122269445911">    
    <link rel="stylesheet"href="statics/mobile/css/User/rank.css?v=2017122269445911">
	<style>
		.pad50 p>img,.pad50 p>a>img{
			max-width: 100%;
			height: auto;
		}
	</style>
</head>

<body style="">



<!-- 自定义活动弹框 -->



<div class="membersbox pad50">
    <header class="fall-back"><a href="/User/mycoupon/sid/4001109.html?pid=27020622">会员等级</a></header>
	<section class="userinfo_top">当前会员等级：<span><?php echo $customer['level']>0?$rank[$customer['level']]:'店铺客户';?></span></section>
	<?php if(!empty($next)){?>
	<section class="userinfo_content">
		<div class="term">
			<p>当前交易额</p>
			<section class="prg_box">
				<div class="progress">
					<div class="progress-bar progress-bar-warning progress-bar-striped active" style="width: <?php echo $next['amount']>0?intval($customer_count['buy_amount']*100/$next['amount']):0;?>%;"></div>
				</div>
			</section class="prg_box">
			<span>还差<?php echo $next['amount']-$customer_count['buy_amount'];?>元满足条件</span>
		</div>						
		<div class="term">
			<p>当前次数</p>
			<section class="prg_box">
				<div class="progress">
					<div class="progress-bar progress-bar-warning progress-bar-striped active" style="width: <?php echo $next['trades']>0?intval($customer_count['buy_count']*100/$next['trades']):0;?>%;"></div>
				</div>
			</section class="prg_box">
			<?php if($next['trades']>$customer_count['buy_count']){?>
			<span>还差<?php echo $next['trades']-$customer_count['buy_count'];?>满足条件</span>
			<?php }?>
		</div>
	</section>
	<section  class="userinfo_bottom">满足以上条件之一即可升级为“<i><?php echo $next['title'];?></i>”</section>
	<?php }?>
	<?php foreach($list as $k=>$item){?>
    <section class="mgrade_mid g-box">
		<section style="width:59px;height:59px;border:1px solid #cbb190;border-radius:4px;background-color:#f2dbbc;text-align:center;color:#c3965d;">
		<div style="text-shadow: 0.1em 0.1em 0.2em black"><strong style="font-size:2.1rem;">V</strong><span style="font-size:1rem;"><?php echo $item['level'];?></span></div>
		<?php echo $item['title'];?></section>
		<section class="g-flex">
			<span><?php echo $item['title'];?></span>
			<p>交易次数达到<?php echo $item['trades'];?>次或金额达到<?php echo $item['amount'];?>元</p>
		</section>
	</section>
	<section class="mgrade_bot">
		<b>特权介绍</b>
		<p><?php echo $item['content'];?></p>
	</section>
    <?php }?>	
    <?php include VIEWS_PATH."bottom.php";?>
    <b id="htmlReplace-navCart"></b>
</div>

<?php include VIEWS_PATH."footer.php";?>

</body>
</html>
<!-- 20170105 -->